(function () {
    var divSwitch = $('.menu_switch'),
        ulNav = $('.menu_nav'),
        lis = ulNav.children;
    console.log(ulNav)

    function toggleFn() {
        divSwitch.classList.toggle('menu_switch--open')
        ulNav.classList.toggle('menu_nav--open')
    }
    divSwitch.onclick = toggleFn
    ulNav.addEventListener("click", function () {
        toggleFn();
    });
})()